// 系统用户
import request from "@/utils/https/requests";

// 列表
export function adminList(data: any) {
    return request({
        url: "/admin/list", method: "post", data,
    });
}

// 添加
export function postAddAdmin(data: any) {
    return request({
        url: "/admin/postAdd", method: "post", data,
    });
}

// 修改
export function postModAdmin(data: any) {
    return request({
        url: `/admin/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteAdmin(id: string) {
    return request({
        url: `/admin/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteAdmin = (id) => {
    return request({
        url: `/admin/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function adminDetail(id: string) {
    return request({
        url: `/admin/detail/${id}`, method: "post",
    });
}